home *** CD-ROM | disk | FTP | other *** search
- /* $Id: const.h,v 1.1 1992/09/06 19:31:32 mike Exp $ */
-
- /* $Log: const.h,v $
- * Revision 1.1 1992/09/06 19:31:32 mike
- * Initial revision
- *
- */
-
- /* const.h : constants, typedefs and macros that I use
- * C Durland Public Domain
- */
-
- #ifndef __CONST_H_INCLUDED
- #define __CONST_H_INCLUDED
-
- /* ***************************************************** */
- /* ************ Constants ****************************** */
- /* ***************************************************** */
-
- #ifndef TRUE
- #define TRUE 1
- #define FALSE 0
- #endif
-
- #ifndef NULL
- #define NULL 0
- #endif
-
- /* ***************************************************** */
- /* ************ Typedefs ******************************* */
- /* ***************************************************** */
-
- typedef int (*pfi)(); /* pointer to function returning int */
- typedef void (*pfv)(); /* pointer to function returning void */
-
- /* ***************************************************** */
- /* ************ Macros ********************************* */
- /* ***************************************************** */
-
- /* size of static array */
- #define NITEMS(array) (sizeof(array)/sizeof(array[0]))
-
- /* increment a type (usually pointer) by n bytes */
- #define INC_TYPE(type,ptr,n) (type)((char *)ptr +n)
-
- #endif /* __CONST_H_INCLUDED */
-